<?php

namespace common\models\user;

use Yii;

/**
 * This is the model class for table "{{%user_hobby}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $course_category_id 课程类别ID
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class UserHobby extends \common\base\ActiveRecord {

    use \common\traits\TimestampBehavior;

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%user_hobby}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'course_category_id', 'created_at', 'updated_at'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'course_category_id' => '课程类别ID',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
